/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.CTPhieuDenBLL;
import edu.nii.qlks.DataTransferObject.CTPhieuDenInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class CTPhieuDenControl {
    CTPhieuDenBLL ChiTietPhieuThue = new CTPhieuDenBLL();
    
 
    public ArrayList LayDS() throws Exception{
        return ChiTietPhieuThue.LayDS();
    }
        
    public void Insert(CTPhieuDenInfo chiTietPhieuThueInfo) throws Exception{
        ChiTietPhieuThue.Insert(chiTietPhieuThueInfo);
    }
    
    public void Update(CTPhieuDenInfo chiTietPhieuThueInfo) throws Exception{
        ChiTietPhieuThue.Update(chiTietPhieuThueInfo);
    }
    
    public void Delete(CTPhieuDenInfo chiTietPhieuThueInfo) throws Exception{
        ChiTietPhieuThue.Delete(chiTietPhieuThueInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return ChiTietPhieuThue.TaoMaTuDong(maGoc, batDau);
     }
}
